<?php

namespace zhtfrontend\models\datas;

use Yii;

/**
 * This is the model class for table "{{%commission_settlement_relation}}".
 *
 * @property integer $settlement_id
 * @property string $orders_commission_id
 */
class CommissionSettlementRelation extends \zhtfrontend\components\bases\BaseModel
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%commission_settlement_relation}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['settlement_id'], 'integer'],
            [['orders_commission_id'], 'string', 'max' => 100],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'settlement_id' => Yii::t('zhtfrontend', '计算id'),
            'orders_commission_id' => Yii::t('zhtfrontend', '每个订单佣金id'),
        ];
    }
}
